package com.click369.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.click369.pojo.Student;
import com.click369.service.StudentService;
@Controller
public class StudentController {
	@Autowired
	private StudentService studentService;
	@RequestMapping("/login")
	@ResponseBody
	public String getAddStu(Student student){
		int a=studentService.addUser(student);
		return a+"";
	}
	

}
